import request from '@/utils/request'

export default {
  //条件查询教师
  teacherCondition(current,limit,searchObj){
    return request({
      url: `/study/teacher/queryList/${current}/${limit}`,
      method: 'post',
      data: searchObj  
    })
  },


//添加教师信息
saveTeacher(teacher){
    return request ({
        url: `/study/teacher/save`,
        method: 'post',
        data:teacher
      })
},

//修改教师信息
updateTeacher(teacher){
    return request({
      url:'study/teacher/update',
      method:"post",
      data:teacher
    })
  },

  //删除教师信息
  deleteTeacher(ids){
    return request({
      url:'study/teacher/delete',
      method:"post",
      data:ids
    })
  },

  //根据id查询教师信息
  getTeacherById(teacherId){
    return request({
      url:`/study/teacher/info/${teacherId}`,
      method:"get",
    })
  },

  //根据学院查询教师列表
  getTeacherListByCollegeId(collegeId){
    return request({
      url:`/study/teacher/teacherList/${collegeId}`,
      method:"get",
    })
  }

}
